package com.zxx.retrofit.net;

import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2016/12/29 0029.
 */

public interface DoubanApi {

    public final static String BASE_URL = "https://api.douban.com";


    @GET("/v2/book/{id}")
    Call<String> getBook(@Path("id") String id);

    @GET("/v2/book/search")
    Call<String> getSearchBook(@Query("q") String name, @Query("tag") String tag, @Query("start") int start,
                               @Query("count") int count);
}
